package com.cw.dto;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

@Data
@ApiModel
public class BaseDictTree {
    @ApiModelProperty(value = "ID")
    @TableId(value = "ID", type = IdType.UUID)
    private String id;
    @ApiModelProperty(value = "数据项名称")
    @TableField("NAME")
    private String name;
    @ApiModelProperty(value = "数据项编码")
    @TableField("CODE")
    private String code;
    @ApiModelProperty(value = "父节点	")
    @TableField("PARENT_ID")
    private String parentId;
    @ApiModelProperty(value = "排序")
    @TableField("ORDER_ID")
    private Integer orderId;
    @ApiModelProperty(value = "启动/禁用 0启动 1禁用")
    @TableField("ENABLE")
    private String enable;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    private Boolean checked;
    private List<BaseDictTree> childNodes;
}
